        <?php $messages = $this->form->getMessages($this->field_name); ?>
        <?php if (!empty($messages)) : ?>
        <tr>
            <td colspan="2">
                <ul class="errors">
                <?php foreach ($messages as $message) : ?>
                    <li><?php echo $message; ?></li>
                <?php endforeach; ?>
                </ul>
            </td>
        </tr>
        <?php endif; ?>